package org.jeecg.modules.wlhy.gas.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: hy_shipping_note_gas
 * @Author: jeecg-boot
 * @Date:   2021-08-14
 * @Version: V1.0
 */
@Data
@TableName("hy_shipping_note_gas")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="hy_shipping_note_gas对象", description="hy_shipping_note_gas")
public class HyShippingNoteGas implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**运单id*/
    @ApiModelProperty(value = "运单id")
//	@Excel(name = "运单", width = 15,dictTable = "hy_shipping_note", dicText = "shipping_note_number", dicCode = "id")
//    @Dict(dictTable = "hy_shipping_note", dicText = "shipping_note_number", dicCode = "id")
    private String shippingId;

    /**运单号*/
    @Excel(name = "运单号", width = 15)
    @ApiModelProperty(value = "运单号")
    private String shippingNoteNumber;

	/**司机id*/
    @ApiModelProperty(value = "司机id")
//    @Excel(name = "司机", width = 15,dictTable = "hy_driver", dicText = "driver_name", dicCode = "id")
//    @Dict(dictTable = "hy_driver", dicText = "driver_name", dicCode = "id")
    private String driverId;

    @ApiModelProperty(value = "司机姓名")
    @Excel(name = "司机姓名", width = 15)
    private String driverName;

    @ApiModelProperty(value = "车牌号")
    @Excel(name = "车牌号", width = 15)
    private String vehicleNumber;

    @Excel(name = "使用油气类型", width = 15, dicCode = "izUsedGas")
    @ApiModelProperty(value = "使用油气类型( 1 万金油 3 油气平台 )")
    @Dict(dicCode = "izUsedGas")
    private String izUsedGas;

	/**油气状态(1待充值2已充值 3待回收 4已回收9充值失败)*/
	@Excel(name = "状态", width = 15,dicCode = "gas_status")
    @ApiModelProperty(value = "油气状态(1待充值2已充值 3待回收 4已回收 5 回收失败 9充值失败)")
    @Dict(dicCode = "gas_status")
    private String gasStatus;

	/**油气预充值金额*/
//	@Excel(name = "油气预充值金额", width = 15)
    @ApiModelProperty(value = "预充值金额")
    private BigDecimal gasRechargeAmount;
	/**油气充值金额*/
	@Excel(name = "充值金额", width = 15)
    @ApiModelProperty(value = "充值金额")
    private BigDecimal gasAmount;
	/**油气充值流水号*/
	@Excel(name = "流水号", width = 15)
    @ApiModelProperty(value = "油气充值流水号")
    private String gasFlowNumber;
	/**充值时间*/
	@Excel(name = "充值时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "充值时间")
    private Date rechargeTime;

    /**油气备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String gasRemark;

	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;

    /**车辆能源类型*/
    @Excel(name = "车辆能源类型", width = 15, dicCode = "vehicle_energy_type")
    @Dict(dicCode = "vehicle_energy_type")
    @ApiModelProperty(value = "车辆能源类型")
    private java.lang.String vehicleEnergyType;

    @TableField(exist = false)
    private String shippingPayStatus;

    @TableField(exist = false)
    private String rechargeTime_begin;

    @TableField(exist = false)
    private String rechargeTime_end;

}
